package cn.jolyoulu.test.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.jolyoulu.common.web.enums.GlobalExpType;
import cn.jolyoulu.common.web.excption.GlobalException;

/**
 * @Author LuZhouJin
 * @Date 2023/5/4
 * web-common 基础测试
 */
@RestController
@RequestMapping("/test/web")
public class TestWebController {

    //测试自定义异常
    @GetMapping("/myExp")
    public void myExp(){
        throw new GlobalException(GlobalExpType.UNKNOWN_ERROR);
    }
}
